package fragments;

import com.actionbarsherlock.app.ActionBar;
import com.actionbarsherlock.app.SherlockListFragment;

import android.os.Bundle;
import android.widget.ArrayAdapter;

public class SecondListFragment extends SherlockListFragment {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		String[] values = new String[] { "one", "two", "three", "4", "5", "6",
				"7", "8", "9", "10" };
		ArrayAdapter<String> adapter = new ArrayAdapter<String>(getActivity(),
				android.R.layout.simple_list_item_1, values);
		setListAdapter(adapter);

		ActionBar ab = getSherlockActivity().getSupportActionBar();
		ab.setTitle("Second tab,first fragment");
	}

}
